﻿using kunukn.RecommendationEngine.AreaRecommendation.Code.Constants;
using kunukn.RecommendationEngine.AreaRecommendation.Code.Entities;

namespace kunukn.RecommendationEngine.AreaRecommendation.Code.Helpers
{
    /// <summary>
    /// Author: Kunuk Nykjaer
    /// </summary>
    public static class LinkHelper
    {           
        public static string GetItemUrl(this string name)
        {
            string n = name ?? "null";
            string url = string.Format(Path.ItemPageSpecificUrl, Item.ItemKey, n);
            return url;
        }        
    }
}